package com.tang.vedioGeneric;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Test {

	public static void main(String[] args) {
		Apple<Integer> a1 = new Apple<Integer>();
		a1.buy(10);
		Apple<Double> a2 = new Apple<>();
		a2.buy(2.3);
	}
	public void testList(){
		List<String> list = new ArrayList<String>();
		list.add("test1");
		list.add("test2");
		list.add("test3");
		list.add("test4");
		Collections.reverse(list);
	}

}
